#include <iostream>
#include <vector>
using namespace std;

void initVec(vector<int>& v, int N) {
	for (int i = 0; i < N; ++i) {
		v.push_back(i);
	}
}

void printVec(vector<int>& v) {
	for (vector<int>::iterator it = v.begin(); it != v.end(); ++it) {
		cout << *it << " ";
	}
	cout << endl;
}